package com.itheima.info.manager.factroy;

import com.itheima.info.manager.controller.BaseStudentController;
import com.itheima.info.manager.controller.BaseTeacherController;
import com.itheima.info.manager.controller.StudentController;
import com.itheima.info.manager.controller.TeacherController;
import com.itheima.info.manager.dao.BaseStudentDao;
import com.itheima.info.manager.dao.BaseTeacherDao;
import com.itheima.info.manager.dao.StudentDao;
import com.itheima.info.manager.dao.TeacherDao;
import com.itheima.info.manager.service.StudentService;
import com.itheima.info.manager.service.TeacherService;

public class SystemFactory {

    public static BaseStudentController getStudentController() {
        return new StudentController();
    }

    public static StudentService getStudentService(){
        return new StudentService();
    }

    public static BaseStudentDao getStudentDao(){
        return new StudentDao();
    }

    public static TeacherService getTeacherService() {
        return new TeacherService();
    }

    public static BaseTeacherDao getTeacherDao() {
        return new TeacherDao();
    }

    public static BaseTeacherController getTeacherController() {
        return new TeacherController();
    }
}
